package com.zyzg.domain;

import lombok.Data;

@Data
public class GpsDistrict {

    // 车辆ID（配置ID）
    private int configId;

    // 城市编码
    private String cityCode;

    // 区域编码
    private String adcode;

    // 省份
    private String province;

    // 城市
    private String city;

    // 区县
    private String district;

    // 当前位置
    private String curAddress;

    public GpsDistrict() {

    }

    public GpsDistrict(int configId, String cityCode, String adcode, String province, String city, String district, String curAddress) {
        this.configId = configId;
        this.cityCode = cityCode;
        this.adcode = adcode;
        this.province = province;
        this.city = city;
        this.district = district;
        this.curAddress = curAddress;
    }

    public GpsDistrict(int configId, Position position) {
        this.configId = configId;
        this.cityCode = position.getCityCode();
        this.adcode = position.getAdcode();
        this.province = position.getProvince();
        this.city = position.getCity();
        this.district = position.getDistrict();
        this.curAddress = position.getCurAddress();
    }

}
